package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {
    /*
    * SpringMVC默认拦截前缀型请求
    * springMVC如果遇到后缀型请求则不拦截*/
//    拦截后缀型.html请求
    @RequestMapping("/index")
    public String index(){
        return "index";
    }
}
